package com.mzj.saas.mservice.roles.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/*
 *角色表
 */
@Entity
@Table(name = "saas_role")
public class Role  extends IdEntity {
    /*
    *企业Id
     */
    @Column(name = "org_id", nullable = true)
    private Long orgId;
    /*
     *父级Id
     */
    @Column(name = "parent_id", nullable = true)
    private Long parentId;
    /*
     *角色名称
     */
    @Column(name = "name", nullable = true)
    private String name;
    /*
     *角色编码
     */
    @Column(name = "code", nullable = true)
    private String code;
    /*
     *属性：1角色组  2角色
     */
    @Column(name = "property", nullable = true)
    private Integer property;
    /*
     *角色类型：0普通角色 1主管理员 2子管理员
     */
    @Column(name = "type", nullable = true)
    private Integer type;
    /*
     *属性类型: 0普通 1默认
     */
    @Column(name = "property_type", nullable = true)
    private Integer propertyType;
    /*
     *备注
     */
    @Column(name = "description", nullable = true)
    private String description;

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getProperty() {
        return property;
    }

    public void setProperty(Integer property) {
        this.property = property;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getPropertyType() {
        return propertyType;
    }

    public void setPropertyType(Integer propertyType) {
        this.propertyType = propertyType;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
